/*    */ package server.movement;
/*    */ 
/*    */ import java.awt.Point;
/*    */ import tools.data.output.MaplePacketLittleEndianWriter;
/*    */ 
/*    */ public class AbsoluteLifeMovement extends AbstractLifeMovement {
/*    */   private Point pixelsPerSecond;
/*    */   private Point offset;
/*    */   private int newfh;
/*    */   private int sub;
/*    */   private int unk161;
/*    */   private byte end;
/*    */   
/*    */   public AbsoluteLifeMovement(int type, Point position, int duration, int newstate) {
/* 15 */     super(type, position, duration, newstate);
/*    */   }
/*    */   
/*    */   public Point getPixelsPerSecond() {
/* 19 */     return this.pixelsPerSecond;
/*    */   }
/*    */   
/*    */   public void setPixelsPerSecond(Point wobble) {
/* 23 */     this.pixelsPerSecond = wobble;
/*    */   }
/*    */   
/*    */   public Point getOffset() {
/* 27 */     return this.offset;
/*    */   }
/*    */   
/*    */   public void setOffset(Point wobble) {
/* 31 */     this.offset = wobble;
/*    */   }
/*    */   
/*    */   public int getNewFH() {
/* 35 */     return this.newfh;
/*    */   }
/*    */   
/*    */   public void setNewFH(short fh) {
/* 39 */     this.newfh = fh;
/*    */   }
/*    */   
/*    */   public int getSub() {
/* 43 */     return this.sub;
/*    */   }
/*    */   
/*    */   public void setSub(short unk) {
/* 47 */     this.sub = unk;
/*    */   }
/*    */   
/*    */   public int getUnk161p() {
/* 51 */     return this.unk161;
/*    */   }
/*    */   
/*    */   public void setunk161p(short unk161) {
/* 55 */     this.unk161 = unk161;
/*    */   }
/*    */   
/*    */   public byte getEnd() {
/* 59 */     return this.end;
/*    */   }
/*    */   
/*    */   public void setEnd(byte end) {
/* 63 */     this.end = end;
/*    */   }
/*    */   
/*    */   public void defaulted() {
/* 67 */     this.newfh = 0;
/* 68 */     this.pixelsPerSecond = new Point(0, 0);
/* 69 */     this.offset = new Point(0, 0);
/*    */   }
/*    */ 
/*    */   
/*    */   public void serialize(MaplePacketLittleEndianWriter lew) {
/* 74 */     lew.write(getType());
/* 75 */     lew.writePos(getPosition());
/* 76 */     lew.writePos(this.pixelsPerSecond);
/* 77 */     lew.writeShort(this.newfh);
/* 78 */     if (getType() == 15 || getType() == 17) {
/* 79 */       lew.writeShort(this.sub);
/*    */     }
/* 81 */     lew.writePos(this.offset);
/* 82 */     lew.writeShort(getUnk161p());
/* 83 */     lew.write(getNewstate());
/* 84 */     lew.writeShort(getDuration());
/* 85 */     lew.write(this.end);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\server\movement\AbsoluteLifeMovement.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */